public class FX2<T, A> {
    private T n1;
    private A n2;

    public FX2(T n1, A n2) {
        this.n1 = n1;
        this.n2 = n2;
    }

    public T getN1() {
        return n1;
    }

    public void setN1(T n1) {
        this.n1 = n1;
    }

    public A getN2() {
        return n2;
    }

    public void setN2(A n2) {
        this.n2 = n2;
    }

    @Override
    public String toString() {
        return "FX2{" +
                "n1=" + n1 +
                ", n2=" + n2 +
                '}';
    }

    public static void main(String[] args) {
        FX2<String, Integer> fx2 = new FX2<>("wang", 22);
        System.out.println(fx2);
    }


}
